<template>
	<view class="rule">
		<rich-text :nodes="newList"></rich-text>
	</view>
</template>

<script>
	import * as Api from '@/api/pony'
	export default{
		data(){
			return{
				newList:''
			}
		},
		onShow() {
			this.getContent()
		},
		methods:{
			getContent() {
				Api.getAgreement()
				  .then(result => {
				    // 合并新数据
					console.log(result)
				    this.newList = result.data.detail.content
				    // app.list.data = getMoreListData(newList, app.list, pageNo)
				    // resolve(newList)
				  })
			}
		}
	}
</script>

<style>
	.rule{
		padding: 20rpx 30rpx;
		height: 100vh;
		background-color: #fff;
	}
</style>